package org.kgc.alanhealth.entity;

import java.io.Serializable;
import lombok.Data;

/**
 * 
 * @TableName hospital_symptomatic
 */
@Data
public class HospitalSymptomatic implements Serializable {
    /**
     * 药品商城一级菜单
     */
    private Integer symptomaticid;

    /**
     * 症状类型
     */
    private String symptomatic;

    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        HospitalSymptomatic other = (HospitalSymptomatic) that;
        return (this.getSymptomaticid() == null ? other.getSymptomaticid() == null : this.getSymptomaticid().equals(other.getSymptomaticid()))
            && (this.getSymptomatic() == null ? other.getSymptomatic() == null : this.getSymptomatic().equals(other.getSymptomatic()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getSymptomaticid() == null) ? 0 : getSymptomaticid().hashCode());
        result = prime * result + ((getSymptomatic() == null) ? 0 : getSymptomatic().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", symptomaticid=").append(symptomaticid);
        sb.append(", symptomatic=").append(symptomatic);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}